package com.yunshang.shoppingmall.service.impl;

import com.yunshang.shoppingmall.entity.AchievementCommission;
import com.yunshang.shoppingmall.mapper.AchievementCommissionMapper;
import com.yunshang.shoppingmall.service.AchievementCommissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("achievementCommissionService")
public class AchievementCommissionServiceImpl implements AchievementCommissionService {

    @Autowired
    AchievementCommissionMapper achievementCommissionMapper;


    @Override
    public int deleteByPrimaryKey(Integer acId) {
        return achievementCommissionMapper.deleteByPrimaryKey(acId);
    }

    @Override
    public int insert(AchievementCommission record) {
        return achievementCommissionMapper.insert(record);
    }

    @Override
    public int insertSelective(AchievementCommission record) {
        return achievementCommissionMapper.insertSelective(record);
    }

    @Override
    public AchievementCommission selectByPrimaryKey(Integer acId) {
        return achievementCommissionMapper.selectByPrimaryKey(acId);
    }

    @Override
    public int updateByPrimaryKeySelective(AchievementCommission record) {
        return achievementCommissionMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(AchievementCommission record) {
        return achievementCommissionMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<AchievementCommission> selectList() {
        return achievementCommissionMapper.selectList();
    }

//    @Override
//    public AchievementCommission selectAchievementCommentByAcAmount(AchievementCommission achievementCommission) {
//        return achievementCommissionMapper.selectAchievementCommentByAcAmount(achievementCommission);
//    }


}
